package com.briup.ch13;

/**
 * @Author briup-adam
 * @Date 2023/10/30 上午8:49
 * @Description
 **/

public class ClassLoaderDemo {
    public static void main(String[] args) {
        //获取系统类加载器
        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
        //系统类加载器的父 类加载器 ---------扩展类加载器
        ClassLoader loader = systemClassLoader.getParent();
        //扩展类加载器的父 类加载器 -----------启动类加载器  根类加载器
        ClassLoader parent = loader.getParent();
        System.out.println("systemClassLoader = " + systemClassLoader);
        System.out.println("loader = " + loader);
        System.out.println("parent = " + parent);

    }
}
